import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const useMeasurementStore = defineStore('measurement', () => {
  //创建的测量对象集合
  const createMeasurementData = ref([])
  //判读是否有创建的测量对象
  const hasCreateMeasurementData = computed(() => createMeasurementData.value.length > 0)

  return {
    createMeasurementData,
    hasCreateMeasurementData,
  }
})
